From: Kenichi Handa Date: Tue, 7 Sep 2010 11:08:46 +0000 (+0900) Subject: coding.c (detect_coding_emacs_mule): Fix checking of multibyte sequence when the... X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~18^2~491^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=3615fe0a86c356a3cae5a9b7b4e35a31249e1220;p=emacs.git coding.c (detect_coding_emacs_mule): Fix checking of multibyte sequence when the source is multibyte. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6f47ab8bcd9..2c3523302c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-07 Kenichi Handa + + * coding.c (detect_coding_emacs_mule): Fix checking of multibyte + sequence when the source is multibyte. + 2010-08-31 Kenichi Handa * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit diff --git a/src/coding.c b/src/coding.c index aef80f5cc80..d62998f4c8b 100644 --- a/src/coding.c +++ b/src/coding.c @@ -2031,7 +2031,7 @@ detect_coding_emacs_mule (coding, detect_info) } else { - int more_bytes = emacs_mule_bytes[*src_base] - 1; + int more_bytes = emacs_mule_bytes[c] - 1; while (more_bytes > 0) {